#include "upnpHandleConnect.h"

int upnpHandleConnect(struct Upnp_Subscription_Requst *sr_event,UpnpDevice_Handle handle)
{
	const char * l_sid = NULL;
	const char * l_serviceId = NULL;
	const char * l_udn = NULL;
	int ret;
	
	l_sid = sr_event -> Sid;
	l_serviceId = sr_event -> ServiceId;
	l_udn = sr_event -> UDN;
	if(-1 != handle)
	{
		ret = UpnpAcceptSubscription(handle,l_udn,l_serviceId,varname,vardef,1,l_sid);
	}

	return ret;

}